// 封装返回action对象的函数

import { INCREMENT, DECREMENT } from './constants'

// 返回action对象的函数,统称actionCreator
export function inc(num) {
  return { type: INCREMENT, num }
}
export function dec(num) {
  return { type: DECREMENT, num }
}
